package com.ezjie.ielts.task;

import java.util.HashMap;
import java.util.Map;

import com.ezjie.ielts.core.http.HttpAPI;
import com.ezjie.ielts.core.http.HttpRequestCallBack;
import com.ezjie.ielts.core.http.ServerInterfaceDefinition;

import android.content.Context;

public class ChangeAimTask {

	private Context context;

	public ChangeAimTask(Context context) {
		this.context = context;
	}
	/**
	 * 更改目标
	 * @param httpRequestCallBack
	 */
	public void changeAim(String is_rand,String daily_num,HttpRequestCallBack httpRequestCallBack){
		Map<String, String> params = new HashMap<String, String>();
//		params.put("daily_num", daily_num);
		params.put("is_rand", is_rand);
		params.put("daily_question_num", daily_num);
		
		HttpAPI.getInstance(context).doPostRequest(
				ServerInterfaceDefinition.OPT_LEARNING_DAILYAIMS, params,
				httpRequestCallBack);
	}
	
}
